package com.gurun.camera.device.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;

import com.danale.sdk.platform.entity.device.Device;

import java.util.List;

public class DeviceAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    Context context;
    List<Device> deviceList;

    public DeviceAdapter(Context context, List<Device> deviceList){
        this.context = context;
        this.deviceList = deviceList;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

        return null;
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        if (deviceList != null){
            return deviceList.size();
        }else {
            return 0;
        }
    }
}
